package com.zzy.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zzy.domain.dto.GoodsDto;
import com.zzy.domain.po.SKU;
import com.zzy.domain.po.SPU;
import com.zzy.domain.vo.GoodsVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface GoodsMapper extends BaseMapper<SPU> {
    void addSku(SKU sku);

    List<GoodsVo> getGoodsAll(@Param("goodsDto") GoodsDto goodsDto);

    List<SKU> getAllSku();
}
